package chatRoom.com.fenwe.util;

import org.springframework.util.StringUtils;

public class InfoTranslateUtil {
    public static String DecodeHTML(String EncodedCode) {
        return StringUtils.isEmpty(EncodedCode) ? EncodedCode
                : EncodedCode.replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&")
                        .replaceAll("&quot;", "\"").replaceAll("&nbsp;", " ");
    }
}
